-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDEV-4155 - switch to source.displayName for Pharmacogenomic filterin… #116
base: develop
Are you sure you want to change the base?
Conversation
…g - so same properties can be used to filter pori_ipr_python kbmatches. Replaced PHARMACOGENOMIC_SOURCE_EXCLUDE_LIST with GSC_PHARMACOGENOMIC_SOURCE_DISPLAYNAME_EXCLUDE_LIST.
Looks like the updates for black will need to be done first, before these github builds will work. |
graphkb/genes.py
Outdated
], | ||
}, | ||
ignore_cache=False, | ||
): | ||
if record["source"]: # type: ignore | ||
if record["source"]["name"].lower() in PHARMACOGENOMIC_SOURCE_EXCLUDE_LIST: # type: ignore | ||
if record["source"]["displayName"] in GSC_PHARMACOGENOMIC_SOURCE_DISPLAYNAME_EXCLUDE_LIST: # type: ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we make the exclude list passable as a parameter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, done.
But let's not worry too much about this, given Yaoqin's statements on the ticket, about using other methods to select.
…RCE_DISPLAYNAME_EXCLUDE_LIST.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good.
In general we should be using the name property which is guaranteed to be unique, but following SDEV-4155 discussion, I'm understanding it's not an option right now with IPR.
…g - so same properties can be used to filter pori_ipr_python kbmatches. Replaced PHARMACOGENOMIC_SOURCE_EXCLUDE_LIST with GSC_PHARMACOGENOMIC_SOURCE_DISPLAYNAME_EXCLUDE_LIST.